[gd_scene load_steps=18 format=2]

[ext_resource path="res://scripts/Platform.gd" type="Script" id=1]
[ext_resource path="res://scripts/ball.gd" type="Script" id=2]
[ext_resource path="res://scripts/Hummer.gd" type="Script" id=3]
[ext_resource path="res://scripts/Label_With_Font.gd" type="Script" id=4]
[ext_resource path="res://sounds/ping.ogg" type="AudioStream" id=5]
[ext_resource path="res://sounds/pong.ogg" type="AudioStream" id=6]
[ext_resource path="res://sounds/pam.ogg" type="AudioStream" id=7]
[ext_resource path="res://sounds/nyo.ogg" type="AudioStream" id=8]
[ext_resource path="res://scripts/NYA.gd" type="Script" id=9]
[ext_resource path="res://sounds/nya.ogg" type="AudioStream" id=10]
[ext_resource path="res://scripts/Main.gd" type="Script" id=11]
[ext_resource path="res://scripts/HiScore.gd" type="Script" id=12]
[ext_resource path="res://sounds/goodboy.ogg" type="AudioStream" id=13]
[ext_resource path="res://scripts/REWARD_LABEL.gd" type="Script" id=14]
[ext_resource path="res://scripts/START_LABEL.gd" type="Script" id=15]
[ext_resource path="res://scripts/ScoreLabel.gd" type="Script" id=16]

[sub_resource type="AudioStreamGenerator" id=1]

[node name="MAIN" type="Node2D"]
script = ExtResource( 11 )

[node name="HiScore" type="Label" parent="."]
margin_left = 403.0
margin_top = 177.0
margin_right = 443.0
margin_bottom = 208.0
text = "Score
"
script = ExtResource( 12 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="REWARD_LABEL" type="Label" parent="."]
margin_left = 37.0
margin_top = 508.0
margin_right = 92.0
margin_bottom = 539.0
text = "REWARD"
script = ExtResource( 14 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="ScoreLabel" type="Label" parent="."]
margin_left = 368.0
margin_top = 230.0
margin_right = 408.0
margin_bottom = 261.0
text = "Score
"
script = ExtResource( 16 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="START_LABEL" type="Label" parent="."]
margin_left = 368.0
margin_top = 230.0
margin_right = 408.0
margin_bottom = 261.0
text = "PRESS SPACE TO START 
"
script = ExtResource( 15 )
font_size = 23

[node name="instructions_1" type="Label" parent="."]
margin_left = 28.0
margin_top = 15.0
margin_right = 412.0
margin_bottom = 97.0
text = "2 Platforms. P1 and P2

P1 is higher pitch and is controlled with left and right arrows
(try it now)
P2 is lower pitch and is controlled with A and D

P1 says \"ping\" when hit
P2 says \"pong\"

P1 says \"nya\" when miss
P2 says \"nyo\""
script = ExtResource( 4 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="instructions_2" type="Label" parent="."]
margin_left = 635.0
margin_top = 217.0
margin_right = 1019.0
margin_bottom = 316.0
text = "The ball is high pulsing sound.
It is pulsing fast when going towards P2
and slower when it goes towards P1

It becomes louder as it gets closer to P2 side.
It is stationary unless  you start the game."
script = ExtResource( 4 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="instructions_3" type="Label" parent="."]
margin_left = 279.0
margin_top = 422.0
margin_right = 663.0
margin_bottom = 521.0
text = "You get the score when you hit any of 2 platforms.
You lose when you miss."
script = ExtResource( 4 )
__meta__ = {
"_edit_use_anchors_": false
}
font_size = 21

[node name="instructions_4" type="Label" parent="."]
margin_left = 547.0
margin_top = 38.0
margin_right = 931.0
margin_bottom = 137.0
text = "Hodge podge text layout is ugly!
Close your eyes to not see it anymore."
script = ExtResource( 4 )
__meta__ = {
"_edit_use_anchors_": false
}
font_size = 21

[node name="instructions_5" type="Label" parent="."]
margin_left = 22.0
margin_top = 367.0
margin_right = 406.0
margin_bottom = 466.0
text = "wear headphones the right way!!!"
script = ExtResource( 4 )
__meta__ = {
"_edit_use_anchors_": false
}
font_size = 23

[node name="PLATFORM1" type="ColorRect" parent="."]
visible = false
margin_right = 250.0
margin_bottom = 40.0
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Hummer1" type="AudioStreamPlayer2D" parent="PLATFORM1"]
position = Vector2( 125, 18 )
stream = SubResource( 1 )
volume_db = -4.0
script = ExtResource( 3 )
pulse_hz = 220.0

[node name="PING" type="AudioStreamPlayer2D" parent="PLATFORM1"]
position = Vector2( 125, 18 )
stream = ExtResource( 5 )

[node name="PLATFORM2" type="ColorRect" parent="."]
visible = false
margin_top = 560.0
margin_right = 250.0
margin_bottom = 600.0
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
right_action = "right2"
left_action = "left2"

[node name="Hummer2" type="AudioStreamPlayer2D" parent="PLATFORM2"]
position = Vector2( 127, 19 )
stream = SubResource( 1 )
volume_db = -4.0
script = ExtResource( 3 )
pulse_hz = 110.0

[node name="PING" type="AudioStreamPlayer2D" parent="PLATFORM2"]
position = Vector2( 127, 19 )
stream = ExtResource( 6 )
volume_db = 5.0

[node name="ball" type="ColorRect" parent="."]
visible = false
margin_top = 320.0
margin_right = 40.0
margin_bottom = 360.0
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Hummer3" type="AudioStreamPlayer2D" parent="ball"]
position = Vector2( 127, 259 )
stream = SubResource( 1 )
volume_db = -8.0
attenuation = 0.0441942
bus = "ball"
script = ExtResource( 3 )
pulse_hz = 1760.0

[node name="PAM" type="AudioStreamPlayer2D" parent="ball"]
position = Vector2( 127, 259 )
stream = ExtResource( 7 )
volume_db = 8.0
attenuation = 0.00497875
bus = "ball"

[node name="NYA" type="Node2D" parent="."]
script = ExtResource( 9 )

[node name="NYA" type="AudioStreamPlayer2D" parent="NYA"]
stream = ExtResource( 10 )
attenuation = 0.0490366

[node name="NYO" type="AudioStreamPlayer2D" parent="NYA"]
stream = ExtResource( 8 )
attenuation = 0.0490366

[node name="BLACK_WEIL" type="Polygon2D" parent="."]
z_index = -1
color = Color( 0, 0, 0, 1 )
polygon = PoolVector2Array( 170.181, -70.1721, -129.819, 13.8279, -129.819, 286.828, -82.819, 475.828, 15.181, 709.538, 1054.54, 649.538, 1037.54, -44.6059 )

[node name="SOUND_REWARD" type="AudioStreamPlayer2D" parent="."]
position = Vector2( 496, 290 )
stream = ExtResource( 13 )
volume_db = 12.0
